import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//  引入公共样式
import './global/common.css'
//  导入字体图标
import "./assets/fonts/iconfont.css"

// //  导axios
// import  axios  from  'axios'
// //  配置基准路径
// axios.defaults.baseURL="http://klxin.cn:8888/api/private/v1"

// // console.log(Vue,8888);
// //  原型对象上挂载  axios
// Vue.prototype.$axios=axios

import bread from '@/comPonent/bread'
Vue.component('bread', bread)

import  moment  from  'moment'

import treeTable from 'vue-table-with-tree-grid'
Vue.component("tree-table", treeTable)

Vue.filter("timeFormat", (obj) => {
  return moment(obj).format('YYYY-MM-DD hh:mm:ss')
})


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
